package cn.tianjindong.blog.mapper;

import cn.tianjindong.blog.pojo.BlogMessageBoard;
import cn.tianjindong.blog.pojo.BlogMessageBoardExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BlogMessageBoardMapper {
    int countByExample(BlogMessageBoardExample example);

    int deleteByExample(BlogMessageBoardExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BlogMessageBoard record);

    int insertSelective(BlogMessageBoard record);
    
    /**
     * 分页查询“留言对象”（关联查询用户）
     * @param startIndex
     * @param countItem
     * @return
     */
    List<BlogMessageBoard> getMessageList(int startIndex, Integer countItem);

    /**
     * 根据Id查询“留言对象”
     * @param messageId
     * @return
     */
	BlogMessageBoard getMessageById(Long messageId);

    List<BlogMessageBoard> selectByExampleWithBLOBs(BlogMessageBoardExample example);

    List<BlogMessageBoard> selectByExample(BlogMessageBoardExample example);

    BlogMessageBoard selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BlogMessageBoard record, @Param("example") BlogMessageBoardExample example);

    int updateByExampleWithBLOBs(@Param("record") BlogMessageBoard record, @Param("example") BlogMessageBoardExample example);

    int updateByExample(@Param("record") BlogMessageBoard record, @Param("example") BlogMessageBoardExample example);

    int updateByPrimaryKeySelective(BlogMessageBoard record);

    int updateByPrimaryKeyWithBLOBs(BlogMessageBoard record);

    int updateByPrimaryKey(BlogMessageBoard record);

}